using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using UnityEngine.SceneManagement;
using System.IO;

public class GamemodeBtn : MonoBehaviour
{
    public GamemodeData _gamemodeData;
    public string modeString;
    public TMP_Text dfcText;

    void Start()
   {
        modeString = "easy";
        dfcTextfc();
    }

    void Update()
    {

    }
    #region ezBtn
    public void ezbtnBeEnter()
    {
        transform.localScale = new Vector3(0.19f, 0.19f, 0.19f);
    }
    public void ezbtnExit()
    {
        transform.localScale = new Vector3(0.18f, 0.18f, 0.18f);
    }
    public void ezbtnBeClick()
    {
        modeString = "easy";
        dfcTextfc();
    }
    #endregion
    #region midBtn
    public void midbtnBeEnter()
    {
        transform.localScale = new Vector3(0.19f, 0.19f, 0.19f);
    }
    public void midbtnExit()
    {
        transform.localScale = new Vector3(0.18f, 0.18f, 0.18f);
    }
    public void midbtnBeClick()
    {
        modeString = "middle";
        dfcTextfc();
    }
    #endregion
    #region hdBtn
    public void hdbtnBeEnter()
    {
        transform.localScale = new Vector3(0.19f, 0.19f, 0.19f);
    }
    public void hdbtnExit()
    {
        transform.localScale = new Vector3(0.18f, 0.18f, 0.18f);
    }
    public void hdbtnBeClick()
    {
        modeString = "hard";
        dfcTextfc();
    }
    #endregion

    public void dfcTextfc()
    {
        _gamemodeData.mode = modeString;
        dfcText.text = "当前难度：" + modeString;
    }

    public void startBtnClick()
    {
        SceneManager.LoadScene("GameScene");
    }
}
